<!DOCTYPE html>
<html lang="ja">
<head>
	<meta charset="UTF-8">
	<title>{{$forms.goods_name}}</title>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta name="description" content="{{$forms.metadescription}}">
	<meta name="keywords" content="{{$forms.metakeyword}}">
	
	<!-- stylesheets -->
	<link rel="stylesheet" href="pc/assets/css/main.css" media="screen">
	<link rel="stylesheet" href="pc/assets/css/print.css" media="print">
	
	<!-- javascript -->
	<script src="pc/assets/js/html5shiv-printshiv.js" type="text/javascript"></script>
	<script src="pc/assets/js/search_txt.js" type="text/JavaScript"></script>
	<script src="pc/assets/js/func.js" type="text/JavaScript"></script>
	<script src="pc/assets/js/jquery-1.4.1.js" type="text/JavaScript"></script>
	<script src="/__utm.js" type="text/javascript"></script>
	<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<script src="assets/js/DOMAssistantCompressed-2.8.1.js" type="text/javascript"></script>
		<script src="assets/js/selectivizr-min.js" type="text/javascript"></script>
		<script src="assets/js/selectivizr.js" type="text/javascript"></script>
	<![endif]-->

	<script type="text/javascript">
    function add(the,userid){
    	if(confirm('ほしいものリストに追加する?')){
    		   
    	       $.ajax({
    	           type: "POST",
    	           url: "{{'pc/topItem/add'|U}}",
    	           data: "goods_id=" + the+"&login_id="+userid,
    	           success: function (msg) {

    	        	    $("#"+the).hide();
        	           
    	               if (msg == "success") {
    	                 
    	               }
    	               if (msg == "fail") {
    	                 
    	               }
    	           },
    	           error: function (XMLHttpRequest, textStatus, thrownError) {
    	           }
    	       });
    		}
    }

    function addcart(gid,gNum)
    {
    	var t  = document.getElementById("quantity").value;
    	gNum = t;
	    $.ajax({
	    url:"pc_cart_ajaxgetcart.html",type:"POST",datatype:"text",
	    success: function(msg)
	    {
	    temp=msg
	    if(temp=="")
	    {temp=gid+"-"+gNum;}
	    else
	    {
	    temp=temp +"|"+gid+"-"+gNum;
	    }
	    $.ajax({url:"pc_cart_ajaxsetcart.html",type:"POST", data:"shopjpcart="+temp,
	    success: function(msg2)
	    {
	    if(msg2=='cart ajax success')
	    {
			//提交成功
	    	location.href = "pc_cart_index.html"
	    }
	    }
	    });
	    }
	    })
    }
	</script>
</head>

<body>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + document.location.protocol + "//rc.kotoha.co.jp/js/rmd.js' type='text/javascript' %3E%3C/script%3E"));
</script>
<script type="text/javascript">
/*
KotohacoRecommend.Request.sendItem({
accountid: "dental-diamond",
itemid: "{{$forms.id}}",
title: "{{$forms.goods_name}}",
url: "{{$forms.tryURL}}",
image: "画像URL",
data1: "自由項目1",
data2: "自由項目2",
data3: "自由項目3",
data4: "自由項目4",
data5: "自由項目5",
deleted: "削除フラグ",
floor: "",
mode:"send"});
*/
</script>
	<div id="wrapper">

		<noscript>このサイトはJavaScriptがオンになっていないと正常に表示されません</noscript>

		{{$pc_head}}
		<ol id="pan">
			<li><a href="{{'pc/top/index'|U}}">ホーム</a></li>
			{{if $category_code}}
			<li><a href="{{'pc/topList/index'|U}}?category_id={{$forms.category_id}}">カテゴリ</a></li>
			{{/if}}
			<li>{{$forms.goods_name}}</li>
		</ol>

		<section id="main">
			<div id="main_inner">
				<div id="top_detail">
					<div id="item_info">
						<div id="item_image">
							<p><a href="{{$forms.goods_image}}" target="_blank" rel="lightbox"><img src="{{$forms.goods_image}}"></a></p>
							<a href="{{$forms.goods_image_big}}" target="_blank" rel="lightbox">画像を拡大</a>						</div>
						
						<div id="title">
							<h1>{{$forms.goods_name}}</h1>
							<h2>{{$forms.category_name}}</h2>
						</div>
						<div id="social_btns">
							<ul>
								<li><a href="" title="">twitter</a></li>
								<li><a href="" title="">Facebook</a></li>
								<li><a href="" title="">Google+</a></li>
								<li><a href="#comment" title="この商品のコメントを見る">この商品のコメントを見る</a></li>
								{{if $forms.outsideURL}}
								<li><a href="{{ $forms.outsideURL}}" title="">Amazonで購入</a></li>		
								{{/if}}
							</ul>
						</div>
						
						<div id="item_info_detail">
							<div id="btns">
							
							 {{if ($forms.sellbegin and $forms.sellbegin!="0000-00-00 00:00:00") or ($forms.sellend and $forms.sellend!="0000-00-00 00:00:00")}}
									  {{if $forms.sellend > $smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}}
									<button type="button"   onclick = addcart({{$forms.id}},1)  title="買い物カゴに入れる"></button>
									  {{else}}
									<em>販売終了しました</em>
									  {{/if}}
									{{else}}
									<em>未発売</em>
									{{/if}}
										
								{{if $user != '' and  $forms.Y == '' }}
								<p id="{{$forms.id}}"><a href="javascript:void(0)" onclick=add({{$forms.id}},{{$user.USER_id}}) title="ほしいものリストに追加">ほしいものリストに追加</a></p>
								{{/if}}
							</div>
							
							<h3>定価：<em>{{$forms.goods_rate|number_format}}</em>円<cite>（本体 {{$forms.goods_unitprice|number_format}}円＋税）</cite></h3>
							<p>
								{{$forms.goods_style}}<br>
								送料： 無料 <br>
								発送日：1～2営業日<br>
								在庫：{{if $forms.goods_stockstatus ==1 }}◎ {{else}}※{{/if}}<br>
								{{$forms.goods_issuedate|date_format:"%Y"}}年{{$forms.goods_issuedate|date_format:"%m"}}月発行
							</p>
							
							<p>
								数量 <select id="quantity" name="quantity" style="visibility: visible; ">
									<option value="1">1</option>
									<option value="2">2</option>
									<option value="3">3</option>
									<option value="4">4</option>
									<option value="5">5</option>
								</select> 冊
							</p>
							6冊以上のご注文の場合は、カートに入れた後「ご注文内容」で変更して下さい。

							<br clear="all">
						</div>
						{{if $forms.tryURL}}
						<p class="btn_tamesiyomi"><a href="{{$forms.tryURL}}" target="_blank" title="この本の 「試し読み！」 はこちら">この本の 「試し読み！」 はこちら</a></p>
						{{/if}}
					</div>
					
					<h4>詳細情報</h4>
					<div id="item_detail">
						<!-- <div class="dd_syoseki_cyo"><img height="197" alt="General Dental Catalog 2013" src="pc/images/title.gif" width="530"></div>
						<div class="dd_syoseki_cyo">ゼネラルデンタルカタログ2013編集委員会　編</div>
						<div class="dd_syoseki_price">
							{{$forms.goods_style}}<br>
							<strong>定価{{$forms.goods_rate|number_format}}円</strong>(本体 {{$forms.goods_unitprice|number_format}}円＋税)
						</div>
						-->
						<div class="dd_syoseki_comment">
							{{$forms.freespace1}}
						</div>

						<!-- <p class="btn_pdf"><a href="" target="_blank">はじめに（PDF 60KB）</a></p> -->
						
						<div class="dd_syoseki_contents">
							{{$forms.freespace2}}
						</div>
						<div class="dd_syoseki_contents2">
						     {{$forms.freespace3}}
						
						</div>
					</div>
					
					<!-- 
					<a name="comment"></a>
					<h4>読者様からのコメント</h4>
					<div id="item_comment">					   
						{{section name=sec start=0 loop=$goodsapp step=1}}
						  <dl>
						     {{ if $goodsapp[sec].sex eq '1'  }}
						      	<dt><img src="pc/images/1678.jpg"></dt>
						     {{ elseif $goodsapp[sec].sex eq '2'}}
						        <dt><img src="pc/images/1679.jpg"></dt>
						     {{/if}}
						   <dd>
								{{$goodsapp[sec].local_name}}
								{{$goodsapp[sec].user_name1}}.{{$goodsapp[sec].user_name2}}&nbsp;先生<br>
								{{$goodsapp[sec].appraise}}
						   </dd>  	
						   <br clear="all">
						  </dl>						     
						{{/section}}
					</div>		

								
				<script>(function(d, s, id) {
				  var js, fjs = d.getElementsByTagName(s)[0];
				  if (d.getElementById(id)) {return;}
				  js = d.createElement(s); js.id = id;
				  js.src = "//connect.facebook.net/ja_JP/all.js#xfbml=1&appId=227892633912857";
				  fjs.parentNode.insertBefore(js, fjs);
				}(document, 'script', 'facebook-jssdk'));</script>
						<div id="main_facebook">
							<div class="fb-like-box" data-href="http://www.facebook.com/DentalDiamond" data-width="540" data-show-faces="false" data-border-color="#dddddd" data-stream="true" data-header="true"></div>
						</div>
						 -->
				</div>
			</div>
		</section>

		<section id="r_clm">
			<h4>Information</h4>
			<ul id="info">
				<li><a href="">ご利用案内</a></li>
				<li><a href="">求人案内</a></li>
				<li><a href="">図書取扱店</a></li>
				<li><a href="">トピックス</a></li>
				<li><a href="">販売支援</a></li>
				<li><a href="">会社概要</a></li>
				<li><a href="">お問い合せ</a></li>
			</ul>
			<h4 class="title2line">
				この商品を見た人は<br>
				こんな商品も買っています
			</h4>
			<div id="kanren">
				<script language="JavaScript" type="text/javascript" charset="UTF-8">script = document.createElement("script");script.setAttribute("type", "text/javascript");script.setAttribute("language", "JavaScript");script.setAttribute("charset", "UTF-8");script.setAttribute("src", document.location.protocol + "//rc.kotoha.co.jp/js/kotohaco_rsWidget.js");tmp = document.createElement("div");tmp.appendChild(script);document.write(tmp.innerHTML);</script><script language="JavaScript" type="text/javascript" charset="UTF-8">var queryopt = new Array();
					//レコメンド方式: 関連商品(タイプ1)
					//itemidを指定します。指定されたitemidの商品に関連する商品を表示します。itemidはセミコロン区切りで最大5件まで設定可能です。 
					//例：itemid = "X490352;X490863";
					itemid = "200339";
					k_callRs("dental-diamond","kotohaco_recoview","relation1",'itemid='+itemid,rsView,{"title": "", "layout": "list|perpage=5", "maxitems": "5", "pagenav": 0, "viewitems": ["image|type=image|link=1|size=70|alt=title", "title|type=text|link=1|maxlen=0"]},[[".item_title", "font-size:small;"]],queryopt);
				</script>
			</div>
			{{$chartsing}}
			<script src="https://seal.verisign.com/getseal?host_name=www.dental-diamond.co.jp&size=M&use_flash=YES&use_transparent=YES&lang=ja"></script>
		</section>
		<br clear="all">

	{{$pc_foot}}

	</div>
</body>
</html>